package com.bootdo.system.service.impl;

import com.bootdo.system.dao.UserRoleDao;
import com.bootdo.system.domain.UserRoleDO;
import com.bootdo.system.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Transactional
@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private UserRoleDao userRoleDao ;


    @Override
    public List<UserRoleDO> list(Map<String, Object> map) {
      return userRoleDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return userRoleDao.count(map);
    }

}
